#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int lenofstr(char* str)
{
	int count = 0;

	int i = 0;
	while (str[i] != '\0')
	{
		count++;
		i++;
	}

	return count;
}

int main()
{
	char* s = "hello world";


	int res = lenofstr(s);
	printf("%d\n", res);

	return 0;
}